<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class topicArticle extends Model {
	public function topic() {
		return $this->belongsTo('App\Topic', 'topic_id');
	}

	public function article() {
		return $this->belongsTo('App\Article', 'article_id');
	}
}
